package com.lagou.edu.dao;

import com.lagou.edu.pojo.Account;
import com.lagou.mapper.Mapper;
import com.lagou.mapper.Select;
import com.lagou.mapper.Update;

/**
 * @author 应癫
 */
public interface AccountDao extends Mapper {

    @Select("select * from account where cardNo=#{cardNo}")
    Account queryAccountByCardNo(String cardNo) throws Exception;

    @Update("update account set money=#{money} where cardNo=#{cardNo}")
    int updateAccountByCardNo(Account account) throws Exception;
}
